<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
    <class name="org.springside.modules.security.domain.PortletChartType" table="portlet_chart_type">
      <id name="id" type="integer">
            <column name="id" />
            <generator class="native" >
				<param name="sequence">PORTLET_CHART_TYPE_ID_SEQ</param>
            </generator>
        </id>
        <property name="chartCode" type="string">
        	<!-- 图表英文名称 -->
            <column name="chart_code" length="50" />
        </property>
        <property name="chartName" type="string">
        	<!-- 图表中文名 -->
            <column name="chart_name" length="50" />
        </property>
        <property name="chartCategory" type="string">
        	<!-- 图表分类Charts，Widgets，保留字段 -->
            <column name="chart_category" length="25" />
        </property>
        <property name="status" type="integer">
        	<!-- 模板状态是否有效，0无效，1有效 -->
        	<column name="status" default="1" />
        </property>
        <property name="descn" type="string">
        	<!-- 图表说明和描述 -->
        	<column name="descn" length="200"/>
        </property>
        <property name="dictsOption" type="string">
        	<!-- 对应系统字典分类的值 -->
        	<column name="dicts_option" length="255"/>
        </property>
    </class>
</hibernate-mapping>
